package com.ktjiaoyu.mapper;

import com.ktjiaoyu.entity.Comments;
import com.ktjiaoyu.entity.SysUser;
import com.ktjiaoyu.utils.Constants;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommentsMapper {
    public List<Comments> getPage(@Param("entity") Comments entity ,
                                   @Param("offset") Integer offset,
                                   @Param("pageSize") Integer pageSize);

    public Long count(@Param("entity") Comments entity);

    public int deleteById(@Param("id") Long id);

    public int updateStatus(@Param("id") Long id, @Param("status") Long status);

    public int updateReply(Comments comments);


}
